﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cubeworld;

namespace cubeworld
{
    public static class Translator
    {
        static List<Language> languages = new List<Language>();
        static int selectetLanguage = 1;

        public static void set_up()
        {
            //German
            languages.Add(new Language("Deutsch", "de"));
            //English
            languages.Add(new Language("English", "en"));
            //Französisch
            languages.Add(new Language("Franösisch", "fr"));
        }

        public static void setLanguage(int id)
        {
            selectetLanguage = id;
        }

        public static string translate(string path)
        {
            return languages[selectetLanguage].translate(path);
        }
    }
}
